import time
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://121.43.169.97:8848/pageA.html")

driver.find_element(by=By.NAME,value="nameA").send_keys("admin")
driver.find_element(by=By.NAME,value="passwordA").send_keys("123456")

# 等待2秒
time.sleep(2)
# 退出浏览器
driver.quit()